package com.emergency.db.domain.info;

import com.emergency.base.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonIgnore;

import javax.persistence.*;

//设备资产总表,各个分队装备信息总览
@Entity
@Table(name = "bas_rescue_item")
public class RescueItem extends BaseEntity {
    private String name; //名称

    private double assets; //总资产

    private double amount; //设备总量

    private String address; //存放地址

    private String manager; //主管人

    private Long tel;//主管人联系方式

    private String note;//备注

    @OneToOne(targetEntity = Rescue.class, fetch = FetchType.LAZY)
    @JoinColumn(name = "rescue_id", referencedColumnName = "id")
    private Rescue rescue;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getAssets() {
        return assets;
    }

    public void setAssets(double assets) {
        this.assets = assets;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getManager() {
        return manager;
    }

    public void setManager(String manager) {
        this.manager = manager;
    }

    public Long getTel() {
        return tel;
    }

    public void setTel(Long tel) {
        this.tel = tel;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public Rescue getRescue() {
        return rescue;
    }

    public void setRescue(Rescue rescue) {
        this.rescue = rescue;
    }
}
